package com.humanSource.code.service.impl;

import com.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.utils.PageUtils;
import com.utils.Query;

import com.humanSource.code.dao.DepInfoDao;
import com.humanSource.code.entity.DepInfoEntity;
import com.humanSource.code.service.DepInfoService;


@Service("depInfoService")
public class DepInfoServiceImpl extends ServiceImpl<DepInfoDao, DepInfoEntity> implements DepInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DepInfoEntity> page = this.page(
                new Query<DepInfoEntity>().getPage(params),
                new QueryWrapper<DepInfoEntity>()
        );

        return new PageUtils(page);
    }

}